<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">

	</head>

	<body style="padding: 0px;">
		<div class="easyui-layout" style="width:100%;height:600px;">
			<div data-options="region:'center'">
				<div>
					<table id="dg" class="table_style">
					</table>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../../JS/common.js"></script>
	<script type="text/javascript" src="../../../JS/Remind/RemindShare.js"></script>
	<script type="text/javascript" src="../../../JS/FrozenShareFunction/FrozenShare.js"></script>
	<script>
		getRemindData();
		var data=gRemindData[FROZEN_DATA];
		console.log(data);
		getTable();
		$('#dg').datagrid('loadData',data);
		function getTable()
		{
			$('#dg').datagrid({
			method: 'get',
			pagination: 'true',
			rownumbers: 'true',
			autoRowHeight: 'true',
			fitColumns: 'false',
			singleSelect: 'true',
			height: 350,
			/*表格中的列名以及各自列名的ID*/
			columns: [
				[{
						field: 'ID',
						title: 'ID',
						width: '0%',
						align: 'center'
					}, {
						field: 'STOREHOUSE_ID',
						title: '库房编号',
						width: '0%',
						align: 'center'
					}, {
						field: 'TENAMT_ID',
						title: '租户编号',
						width: '0%',
						align: 'center'
					},{
						field: 'ORDER_NO',
						title: '编号',
						width: '10%',
						align: 'center'
					},  
					{
						field: 'STOREHOUSE_NAME',
						title: '库房名称',
						width: '15%',
						align: 'center'
					}, {
						field: 'TENANT_NAME',
						title: '租户名称',
						width: '8%',
						align: 'center'
					}, {
						field: 'START_DATE',
						title: '开始时间',
						width: '10%',
						align: 'center'
					}, {
						field: 'END_DATE',
						title: '结束时间',
						width: '10%',
						align: 'center'
					}, 
					{
						field: 'STATE',
						title: '包库状态',
						width: '10%',
						align: 'center'
					},{
						field: 'REAL_SUM',
						title: '总价',
						width: '10%',
						align: 'center',
						formatter: function(value, row, index) {
							return "￥" + value + "元";
						}
					},
					{
						field: 'ISCHARGE',
						title: '收费状态',
						width: '10%',
						align: 'center',
						formatter: function(value, row, index) {
							return IsChargeState(value);
						}
					}, {
						field: 'ISVERIFY',
						title: '审核状态',
						width: '8%',
						align: 'center',
						formatter: function(value, row, index) {
							if(value == 1) {
								return "已审核";
							} else {
								return "未审核";
							}
						}
					},
				]
			],
		});
		$('#dg').datagrid('hideColumn', 'ID');
		$('#dg').datagrid('hideColumn', 'STOREHOUSE_ID');
		$('#dg').datagrid('hideColumn', 'TENAMT_ID');
		}
		
	</script>

</html>